package com.inspur.cloud.entity.dataspace.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel
public class OpResult {
    @ApiModelProperty(value = "返回信息  -1：失败 ；1：成功 ；0：未登陆；2 操作成功 部分失败", example = "1")
    private int code = 1;
    @ApiModelProperty(value = "错误信息")
    private String msg;

    public OpResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public OpResult() {
    }
}
